package tech.xs.sys.service;

import org.springframework.web.multipart.MultipartFile;
import tech.xs.common.sys.domain.bo.UserDetailsBo;
import tech.xs.common.framework.service.CrudService;
import tech.xs.sys.domain.entity.SysUser;

import java.io.IOException;

public interface SysUserService extends CrudService<SysUser> {

    UserDetailsBo getUserDetails(Long userId);

    void deleteUserDetailsCache(Long userId);

    void deleteUserDetailsCache();

    /**
     * 修改当前用户头像
     *
     * @param avatar
     */
    String updateCurrUserAvatar(MultipartFile avatar) throws IOException;

}
